<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<span class="infomessage"><bean:message key="label.versions.grinddistribution.priority.message"/></span>
<br/>
<span class="columnadatoPar">
	<bean:message key="label.futurepurchase.query.period"/> : 
	<select name="month" class="campo_texto" onchange="location.href='showGrindDistributionVersion.do?periodId='+ this.value">
		<option value="0"><bean:message key="label.versions.grinddistribution.period.all"/></option>
		<logic:notEmpty name="periodosAllVersion">
			<logic:iterate name="periodosAllVersion" id="periodos">
				<option <logic:equal name="periodos" property="id" value="<%=(String)request.getAttribute("periodId")%>">selected</logic:equal> value="<bean:write name="periodos"  property="id"/>"><bean:write name="periodos"  property="description"/></option>
			</logic:iterate>
		</logic:notEmpty>				
	</select>
</span>
<table width="<bean:write name="totalSizeWithCorn"/>" align="center" border="0">
	<tr>
		<td style="width: 100%" align="center">
			<table width="100%" align="center" border="0" cellspacing="1" bgcolor="#CCCCC0">
				<tr>
					<th colspan="<bean:write name="totalPeriods"/>" align="left" class="titulocolumna">&nbsp;</th>
				</tr>
				<tr>
					<td width="150" class="etiqueta_campo_center">&nbsp;</td>
					<logic:notEmpty name="periodosVersion">
						<logic:iterate name="periodosVersion" id="periodos">
							<td width="<bean:write name="totalSizeTD"/>" class="etiqueta_campo_center">
								<bean:write name="periodos"  property="description"/><br/>
								<logic:notEmpty name="cornTypeViews">
									<table width="99%" align="center" border="0" cellspacing="0" >
										<tr>
											<logic:iterate id="corntypes" name="cornTypeViews">
												<td class="etiqueta_campo_center">
													<bean:write name="corntypes" property="code"/>
												</td>
											</logic:iterate>
										</tr>
									</table>
								</logic:notEmpty>
							</td>
						</logic:iterate>
					</logic:notEmpty>
				</tr>
			</table>
		</td>
	</tr>
</table>